package com.example.librarymanagementproject2.model.entity;

import com.example.librarymanagementproject2.model.enums.AuditStatus;
import com.example.librarymanagementproject2.model.enums.BorrowStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ClassName BorrowRecord
 * @Description 借阅记录实体类
 * @Author Kx
 * @Date 2025/9/29 9:44
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BorrowRecord {
    private Long id; // 编号
    private Long userId; // 借阅用户ID
    private Long bookId; // 图书ID
    private Date borrowDate; // 借阅日期
    private Date dueDate; // 应还日期
    private Date returnDate; // 实际归还日期
    private BorrowStatus status; // 借阅状态
    private Integer renewCount; // 续借次数
    private AuditStatus auditStatus; // 审核状态
    private String auditRemark; // 审核备注(驳回原因)
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime updateTime; // 更新时间
}
